package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.domain.db.UserStatus;
import com.tanhua.dubbo.mapper.UserStatusMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author : wangpengfei
 * @Description :
 * @Date : 2021/3/1 16:17
 */
@Service
public class UserSatusApiImpl implements UserStatusApi{
    @Autowired
    private UserStatusMapper userStatusMapper;
    @Override
    public UserStatus findByUserId(Integer userId) {
//        QueryWrapper<UserStatus> wrapper = new QueryWrapper<>();
//        wrapper.eq("user_id",userId);
        return userStatusMapper.findUserStatusByUserId(userId);
    }
}
